<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="theme-color" content="#000000" />
    <meta
      name="description"
      content="Web site created using create-react-app"
    />
    <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
    <!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> -->
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
    <!-- 高德地图API -->
    <!-- <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=09e3a84e11dd4f190e4457e142c0b4a7"></script> -->
    <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=7d45cf9c66dba668c65f85c9379e5ea8"></script>
    <title>React App</title>
  </head>
  <body>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root" style='height:100%'></div>
    <!--
      This HTML file is a template.
      If you open it directly in the browser, you will see an empty page.

      You can add webfonts, meta tags, or analytics to this file.
      The build step will place the bundled scripts into the <body> tag.

      To begin the development, run `npm start` or `yarn start`.
      To create a production bundle, use `npm run build` or `yarn build`.
    -->
  </body>
</html>
<script>
  
  // var vConsole = new VConsole();
  
      function resetWidth() {
          // 兼容ie浏览器 document.body.clientWidth
          var baseWidth = document.documentElement.clientWidth || document.body.clientWidth;
          // console.log(baseWidth);
          // 默认的设置是375px(ip6)的根元素设为100px, 其他的手机都相对这个进行调整
          document.documentElement.style.fontSize = baseWidth / 375 * 100 + 'px'
      }
      resetWidth();
      window.addEventListener('resize', function () {
          resetWidth();
      }) 
</script>
